const merge = require('webpack-merge');
const path = require('path');
const common = require('./webpack.common.js');
const MinifyPlugin = require("babel-minify-webpack-plugin");
const webpack = require('webpack');

module.exports = merge(common, {
	output: {
		filename: 'bundle.js',
		path: path.resolve(__dirname, 'build')
	},
	devtool: 'none',
	plugins: [
	 new webpack.DefinePlugin({
      'process.env': {
        'NODE_ENV': JSON.stringify('production')
      }
    }),
		new MinifyPlugin(),
		// new UglifyJSPlugin()
	]
});